package cn.admin.configcenter.configservice.domain;

import java.util.ArrayList;
import java.util.List;

public class Page<E> {

	private int totalSize;
	private int currentPage;
	private int pageSize;
	private List<E> result = new ArrayList<>();

	@Override
	public String toString() {
		return "Page{" +
				"totalSize=" + totalSize +
				", currentPage=" + currentPage +
				", pageSize=" + pageSize +
				", result=" + result +
				'}';
	}

	public int getTotalSize() {
		return totalSize;
	}

	public void setTotalSize(int totalSize) {
		this.totalSize = totalSize;
	}

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public List<E> getResult() {
		return result;
	}

	public void setResult(List<E> result) {
		this.result = result;
	}
}
